package com.woniu.apiBoss.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.internalcommon.dto.PassengerUser;
import com.woniu.internalcommon.dto.ResponseResult;
import com.woniu.internalcommon.remote.ServicePassengerUserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zcnovice
 * @data 2025/7/15 上午11:35
 */
@Service
public class ApiPassengerService {
    @Autowired
    private ServicePassengerUserClient servicePassengerUserClient;

    /* 查询所有乘客 */
    public ResponseResult<Page<PassengerUser>> getAll(@RequestParam("current") Integer  current, @RequestParam("size") Integer size ) {
        ResponseResult getAll = servicePassengerUserClient.selectAll(current,size);
        return getAll;
    }

}
